home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(Key.isDown(39))
- {
- _root.xSpeed += speedPlus;
- }
- if(_root.xSpeed >= speedMax)
- {
- _root.xSpeed = speedMax;
- }
- if(Key.isDown(37))
- {
- _root.xSpeed -= speedPlus;
- }
- if(_root.xSpeed <= speedMin)
- {
- _root.xSpeed = speedMin;
- }
- if(Key.isDown(38))
- {
- _root.ySpeed -= speedPlus;
- }
- if(_root.ySpeed <= speedMin)
- {
- _root.ySpeed = speedMin;
- }
- if(Key.isDown(40))
- {
- _root.ySpeed += speedPlus;
- }
- if(_root.ySpeed >= speedMax)
- {
- _root.ySpeed = speedMax;
- }
- _Y = _Y + _root.ySpeed;
- _X = _X + _root.xSpeed;
- _rotation = _root.xSpeed * 2;
- }
-